import 'package:flutter/material.dart';
import 'package:flutterapp/account/help.dart';
import 'package:flutterapp/account/setting.dart';

class Account extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Column(
          children: <Widget>[
            SizedBox(height: 30),
            Container(
              height: 150,
              alignment: Alignment.center,
              child: ListTile(
                title: Text(
                  'Daniel Hua',
                  style: TextStyle(fontSize: 33.0),
                ),
                subtitle: Text('Edit Profile'),
                isThreeLine: true,
                trailing: ClipOval(
                  child: Image.network(
                    'https://pic2.zhimg.com/v2-639b49f2f6578eabddc458b84eb3c6a1.jpg',
                    width: 80,
                    height: 80,
                    fit: BoxFit.fill,
                  ),
                ),
              ),
            ),
            ListTile(
                title: Text('Change Password'), trailing: Icon(Icons.lock)),
            Divider(),
            ListTile(title: Text('Invite friends'), trailing: Icon(Icons.people)),
            Divider(),
            ListTile(title: Text('Coupon Code'), trailing: Icon(Icons.work)),
            Divider(),
            ListTile(title: Text('Help'), trailing: Icon(Icons.help),onTap: () {
              Navigator.push(context,
                  MaterialPageRoute(builder: (context) => Help()));
            }),
            Divider(),
            ListTile(
                title: Text('Setting'),
                trailing: Icon(Icons.build),
                onTap: () {
                  Navigator.push(context,
                      MaterialPageRoute(builder: (context) => Setting()));
                })
          ],
        ),
      ),
    );
  }
}
